﻿$(function () {

    jqZoom();
    tab();
    countdown();
});

function jqZoom() {
    $('.jqzoom').jqzoom({
        zoomType: 'innerzoom',
        preloadImages: false,
        zoomWidth: 300,
        alwaysOn: false
    });
}
function tab() {
    $("#tab").organicTabs({
        "speed": 200
    });
    $("#tabcomment").organicTabs({
        "speed": 200
    });
    
}
function countdown() {
    var countdownDiv = $('#defaultCountdown');
    var year = countdownDiv.attr("year");
    var month = countdownDiv.attr("month");
    var date = countdownDiv.attr("date");
    var endDate = new Date();
    endDate = new Date(year, month - 1, date);
    var id = $(this).attr("id");
    countdownDiv.countdown({ until: endDate });
}